<template>
  <a-config-provider :get-popup-container="getPopupContainer" :locale="zhCN">
    <router-view />
  </a-config-provider>
</template>

<script setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';

dayjs.locale('en');

function getPopupContainer(el, dialogContext) {
  if (dialogContext) {
    return dialogContext.getDialogWrap();
  } else {
    return document.body;
  }
}
</script>

<style lang="less">
#app {
  width: 100%;
  height: 100%;
  background: #f2f2f2;
  padding: 13px 120px 24px 120px;
}
</style>
